
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="span12">
	<div class="widget">
		<ul class="breadcrumb br_styled no_space">
			<li><a href="${pageContext.request.contextPath}/template/">Dashboard</a>
				<span class="divider">/</span></li>
			<li class="active">Validateur HTML</li>
		</ul>
	</div>

	<div class="widget">
		<header>
			<h3>
				Table des Sites <span> - chaque utilisateur surveille ses
					sites </span>
			</h3>
			<ul class="toggle_content">
				<li class="arrow"><a href="#">Toggle Content</a></li>
			</ul>
		</header>
		<section>
			<table id="check_2" class="table_basic sortable chbox css">
				<thead>
					<tr>
						<td>utilisateur</td>
						<td><a class="sort_desc" href="#">Nom du Site</a></td>
						<td><a class="sort_asc" href="#">Description</a></td>
						<td><a href="#">url</a></td>
						<td><a href="#">Date d'insertion</a></td>
						<td>option</td>

					</tr>
				</thead>
				<tbody>
					<s:iterator value="site">
					<s:iterator value="users">
						<tr>
							<td><s:property value="login" /></td>
							<td><s:property value="nom_site" /></td>
							<td><s:property value="description_site" /></td>
							<td><s:property value="url_site" /></td>
							<td><s:property value="dateinsertionurl" /></td>
							<td><s:a href="delSuser?pk=%{id_site}">
									<img src="css/img/supprimer.png"></img>
								</s:a></td>

						</tr>
						</s:iterator>
					</s:iterator>
				</tbody>

			</table>
		</section>
	</div>








	<form action="addSiteuser" method="get">
		<s:hidden name="login" value="%{#session['login']}"></s:hidden>
		<div class="widget">
			<header>
				<h3>Emetre un nouveau Site</h3>
				<ul class="toggle_content">
					<li class="arrow"><a href="#">Toggle Content</a></li>
				</ul>
			</header>
			<section class="welly form_align">
				<div class="row-fluid">
					<div class="span3">Nom Site:</div>
					<div class="span9">
						<s:textfield name="nom" value="%{nom}"></s:textfield>
					</div>
				</div>
				<hr>
				<div class="row-fluid">
					<div class="span3">Description:</div>
					<div class="span9">
						<s:textfield name="desc" value="%{desc}"></s:textfield>
					</div>
				</div>
				<hr>
				<div class="row-fluid">
					<div class="span3">URL du Site:</div>
					<div class="span9">
						<s:textfield name="url" value="%{url}"></s:textfield>
					</div>
				</div>
				<hr>

				<button type="submit" class="btn btn-success">Valider</button>

			</section>
		</div>
	</form>
</div>
